package com.thrd.taiexhibition.utils;

import com.thrd.taiexhibition.bean.BeanCityLetter;

import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * @author: ${唐杰}
 * @date: 2021/3/23
 */
public class SortTool {

    /**
     * 赛选字母排序
     * @param slb
     */
    public static void sortLetter(List<BeanCityLetter> slb){
        Collections.sort(slb, new Comparator<BeanCityLetter>() {
            @Override
            public int compare(BeanCityLetter o1, BeanCityLetter o2) {
                return o1.getLetter().compareTo(o1.getLetter());
            }
        });
    }
}
